# $Id: Makefile 1929 2007-06-26 23:34:34Z andres $

# Instructions:
# You can compile a debug bytecode app by specifying DEBUG=-g
# You can compile a profiled bytecode app by specifying
#      OCAMLC=ocamlcp DEBUG="-p a"
# You can compile a profiled native app by specifying PROFILE=-p

# Change whatever options (compilers, compiler options, and so on) in this file
# Cleanup spaces so that we recognize proper options

all: poy.native

SHELL = /bin/sh
VPATH = @srcdir@

subdirs = @subdirs@
top_srcdir = @top_srcdir@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
infodir = $(prefix)/info
libdir = $(prefix)/lib/gnudl
mandir = $(prefix)/man/man1

CC = @CC@
CPPFLAGS = @CPPFLAGS@
CFLAGS = $(CPPFLAGS) @CFLAGS@ 
LDFLAGS = @LDFLAGS@
LIBS = -cclib "-lz @LIBS@"
INSTALL = @INSTALL@

USEPARALLEL := @USEPARALLEL@
USE_LARGE_MESSAGES := @USE_LARGE_MESSAGES@
USEWIN32 := @USEWIN32@
USE_LONG_SEQUENCES := @USE_LONG_SEQUENCES@
USE_LARGE_ALPHABETS := @USE_LARGE_ALPHABETS@
USEINTERFACE := @USEINTERFACE@
USEGRAPHICS := @USEGRAPHICS@
USESHAREDHD := @USESHAREDHD@
USE_XSLT := @USE_XSLT@
USE_LIKELIHOOD := @USE_LIKELIHOOD@
USE_VERIFY_COSTS := @USE_VERIFY_COSTS@
OCAML := @OCAML@
OCAMLC := @OCAMLC@
OCAMLOPT := @OCAMLOPT@ 
OCAMLDEP := @OCAMLDEP@ -slash
OCAMLTOP := @OCAMLTOP@
OCAMLLEX := @OCAMLLEX@
OCAMLYACC := @OCAMLYACC@
OCAMLBUILD := @OCAMLBUILD@
MERCURIAL :=@MERCURIAL@
EXTRAS := @EXTRAS@
OFLAGS := @OCAMLFLAGS@ 
NATIVEDYNLINK := @NATIVEDYNLINK@

.PHONY: commands.pdf poy.native poy.byte poy.top clean distclean

poy.top: 
	$(OCAMLBUILD) $@

poy.byte: 
	$(OCAMLBUILD) $@

poy.native: 
	$(OCAMLBUILD) $@

commands.pdf:
	$(OCAMLBUILD) $@

all: poy.native poy.byte poy.top

clean:
	$(OCAMLBUILD) -clean

distclean: clean
	rm -f Makefile buildNumber.ml compileFlags.ml config.h \
		config.log config.status _tags myocamlbuild.ml
